package com.piccolo.wrapper.client.component.JSNI;

import com.piccolo.wrapper.client.component.Overlay.PActivityOverlay;
import com.piccolo.wrapper.client.component.Overlay.PActivitySchedulerOverlay;

public class PActivitySchedulerJSNI 
{
	public native PActivitySchedulerOverlay create(int frameRate) 
	/*-{ return new $wnd.PActivityScheduler(frameRate); }-*/;
	
	public native void schedule(PActivitySchedulerOverlay scheduler, PActivityOverlay activity) 
	/*-{ scheduler.schedule(activity); }-*/;

	public native double getGlobalTime(PActivitySchedulerOverlay self) 
	/*-{ return self.globalTime; }-*/;
}
